home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / OpenDoc / Video / Video Part Read Me
Encoding:
Text File  |  1995-04-28  |  1.0 KB  |  35 lines  |  [TEXT/ttxt]

  1. Video Part
  2. by Stephen Chick
  3.  (Written with PartMaker™ of course.)
  4.  
  5. • What is it?
  6.  
  7. Video Part is a simple video display part that demonstrates, among other things, idle-time updating.
  8.  
  9. • How do I set up the video input device?
  10.  
  11. Choose “Settings…” from the “Video” menu — if you’re lucky it won’t crash.
  12.  
  13. • How is it different from HelloPart?
  14.  
  15. • All QuickTime and GWorld-related setup is done in PrivInitializeQuickTime (incoming video frames are buffered in an offscreen GWorld for beautiful drawing with multiple facets, etc.).
  16. • RegisterIdle is called from within the DisplayFrameAdded method.
  17. • Idle-time drawing is done in HandleEvent whenever a nullEvent is received. The part steps through each facet in its facet list and updates their contents.
  18.  
  19. • What’s cool about it?
  20.  
  21. Try embedding video in the puzzle part.
  22.  
  23. • What’s lame about it?
  24.  
  25. The offscreen GWorld is hard-coded as 16-bit. If you have a macho-AV card, you’ll want increase the kPixelDepth constant.
  26.  
  27. Copyright © 1995 Jovian Systems Development, Inc.
  28. email: jovian@applelink.apple.com
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.